package com.sun.dailyprj.zotye.ui;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import com.sun.dailyprj.R;
import com.sun.dailyprj.databinding.ActivityCheckBinding;


public class CheckActivity extends AppCompatActivity{

    ActivityCheckBinding mBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_check);

        new Thread(new Runnable(){
            @Override
            public void run() {
                try{
                    Thread.sleep(2*1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                startActivity(new Intent(CheckActivity.this,DetailActivity.class));
            }
        }).start();
    }
}
